﻿//=======================================================
//==        XingNet SDK by Tim Cadenbach               ==
//==            DO NOT REMOVE THIS                     ==
//==            Appache License v.2                    ==
//==                                                   ==
//== File: XingProviderBase.cs                         ==
//== Purpose: Xing Endpoint Definitions                ==
//== History:                                          ==
//== 03-FEB-2012 - TCA - Created                       ==
//=======================================================

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DotNetOpenAuth.Messaging;
using DotNetOpenAuth.OAuth;
using DotNetOpenAuth.OAuth.ChannelElements;

namespace XingNet.Main
{
  public class XingProviderBase
  {
   public ServiceProviderDescription GetServiceDescription()
    {
      return new ServiceProviderDescription
      {
        AccessTokenEndpoint = new MessageReceivingEndpoint("https://api.xing.com/v1/accessToken",HttpDeliveryMethods.PostRequest),
        RequestTokenEndpoint = new MessageReceivingEndpoint("https://api.xing.com/v1/request_token", HttpDeliveryMethods.PostRequest),
        UserAuthorizationEndpoint = new MessageReceivingEndpoint("https://api.xing.com/v1/authorize", HttpDeliveryMethods.PostRequest),
        TamperProtectionElements = new ITamperProtectionChannelBindingElement[] { new HmacSha1SigningBindingElement() },
        ProtocolVersion = ProtocolVersion.V10a
      };
    }
  }
}
